<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
	<?php //print_r(Yii::app()->theme);?>
	<!-- Grid 960 CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/grid960/text.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/grid960/reset.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/grid960/960_24_col.css" />

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/form.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
<div id="page">
	<div id="header">
		<div class="container_24">
			<div id="logo" class="grid_18"><img src="http://www.yiiframework.com/css/img/logo.png" /></div>
			<div class="grid_6">
					<div id="langbox">
						<?php $this->widget('LangBox',array(
							'items'=>Yii::app()->locale->languageList(),
						)); 
						?>
					</div>
					<div id="authentication">
						<?php $this->widget('zii.widgets.CMenu',array(
							'items'=>array(
								array('label'=>Yii::t('user','Login'), 'url'=>array('/user/default/login'),'visible'=>Yii::app()->user->isGuest),
								array('label'=>Yii::t('user','New account'), 'url'=>array('/user/default/create'),'visible'=>Yii::app()->user->isGuest),
								array('label'=>Yii::t('user','Logout'), 'url'=>array('/user/default/logout'), 'visible'=>!Yii::app()->user->isGuest),
								array('label'=>Yii::t('user','Welcome,').Yii::app()->user->name, 'url'=>array('/user/default/logout'), 'visible'=>!Yii::app()->user->isGuest)
							),
							'firstItemCssClass'=>'first',
							'lastItemCssClass'=>'last',
						)); 
						?>
					</div>
			</div>
			<div id="main_menu" class="grid_24">
				<?php $this->widget('zii.widgets.CMenu',array(
						'items'=>array(
							array('label'=>Yii::t('default', 'Home'), 'url'=>array('/'),'itemOptions'=>array('class'=>'active')),
							array('label'=>Yii::t('default', 'About'), 'url'=>array('/site/page', 'view'=>'about')),
							array('label'=>Yii::t('default', 'Contact'), 'url'=>array('/site/contact')),							
						),
						'firstItemCssClass'=>'first',
						'lastItemCssClass'=>'last',
					)); 
				?>
			</div>
		</div>
	</div>
	<div id="body">
		<div class="container_24">
			<div class="grid_24 content">
				<?php echo $content; ?>
			</div>
		</div>
	</div>
	<div id="footer">
		<div class="container_24">
			<div class="grid_24 footer-text">
				Copyright &copy; <?php echo date('Y'); ?> by Asalaka. All Rights Reserved.<br/>
				<?php echo Yii::powered(); ?>
			</div>
		</div>
	</div>
</div>
</body>
</html>